package sk.fei.vrml.objects;

import sk.fei.vrml.main.Constants;

//nevedel som este co vsetko mi tu bude treba...najprv treba rozbehat ten strom
public class VrmlViewPoint extends VrmlObject {
	private float[] position = {0,0,-7};
	private float[] orientation = {0,0,0,0};
	float FOV= 0.78539f;
	boolean jump=false;
	String description="";
	boolean used=false;
	
	public boolean isUsed() {
		return used;
	}

	public void setUsed(boolean used) {
		this.used = used;
	}

	public boolean isJumpTrue() {
		return jump;
	}

	public void setJump(boolean jump) {
		this.jump = jump;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public VrmlViewPoint(int name){
		this.type = Constants.View;
		this.name="VrmlViewpoint "+String.valueOf(name);
	}

	public VrmlViewPoint(float[] position, float[] orientation, float fOV,
			boolean jump, String description, String name) {
		this.type = Constants.View;	
		this.position = position;
		this.orientation = orientation;
		FOV = fOV;
		this.jump = jump;
		this.description = description;
		this.name = name;
	}

	public void getView() {
	}
	
	public String toString() {
		// pretoze toto sa zobrazi v strome treba nechat tak
		return "Properties";
	}
	
	public float[] getPosition(){
		return position;
	}
	
	public float getPositionX(){
		return position[0];
	}
	
	public float getPositionY(){
		return position[1];
	}
	
	public float getPositionZ(){
		return position[2];
	}
	
	public void setPositionX(float x){
		position[0]=x;
	}
	
	public void setPositionY(float y){
		position[1]=y;
	}
	
	public void setPositionZ(float z){
		position[2]=z;
	}

	public float[] getOrientation() {
		return orientation;
	}
	
	public float getOrientationX() {
		return orientation[0];
	}

	public float getOrientationY() {
		// TODO Auto-generated method stub
		return orientation[1];
	}
	public float getOrientationZ() {
		// TODO Auto-generated method stub
		return orientation[2];
	}

	public float getAngle() {
		return orientation[3];
	}
	
	public void setOrientationX(float x){
		orientation[0]=x;
	}
	
	public void setOrientationY(float y){
		orientation[1]=y;
	}
	
	public void setOrientationZ(float z){
		orientation[2]=z;
	}
	
	public void setAngle(float z){
		orientation[3]=z;
	}

	public float getFOV() {
		// TODO Auto-generated method stub
		return FOV;
	}
	
	public void setFOV(float f) {
		// TODO Auto-generated method stub
		FOV=f;
	}

}
